-
Notifications
You must be signed in to change notification settings - Fork 22.7k
Avoid ^ for exponentiation #18634
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid ^ for exponentiation #18634
Conversation
To avoid confusion with XOR.
So for a long time, JS had only I'm torn on this one. What do you think, @Josh-Cena ? Should we ask this in a discussion to have more opinions? This will definitively have an impact on numerous other places on MDN. |
What about using Math ML, or use a simple |
I think we should:
So avoid I think we are in case 1 here. |
files/en-us/web/javascript/reference/global_objects/number/max_safe_integer/index.md
Outdated
Show resolved
Hide resolved
I'm asking this question because the https://stackoverflow.com/questions/4843304/why-is-my-power-operator-not-working Hopefully there is a better way to avoid this ambiguity. |
files/en-us/web/javascript/reference/global_objects/number/max_safe_integer/index.md
Outdated
Show resolved
Hide resolved
…_safe_integer/index.md Co-authored-by: Jean-Yves Perrier <jypenator@gmail.com>
I think it should be a one-time effort to fix it everywhere. We have about 20 pages with this issue. I'm going to commit to this branch. |
(I think MathML is a bit overkill for this, at least for the time being). |
…_safe_integer/index.md Co-authored-by: Jean-Yves Perrier <jypenator@gmail.com>
I realized we have this guide, though: https://developer.mozilla.org/en-US/docs/MDN/Contribute/Markdown_in_MDN#superscript_and_subscript We should reconsider that suggestion. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's go like this 😃
I noticed some previous related discussions. #4578 (comment) Maybe should remove particular for exponentiation. |
Yes, that discussion happened when we moved to Markdown last year. Before we stored our pages in HTML. We tried to minimize the use of HTML tags. We decided to keep the |
Summary
Use ** instead of ^.
Motivation
To avoid confusion with XOR.
Supporting details
Related issues
Metadata